package com.quanshi.shopping_manager_api.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.quanshi.shopping_common.entity.Goods;
import com.quanshi.shopping_common.entity.GoodsDesc;

import java.util.List;

public interface GoodsMapper extends BaseMapper<Goods> {


    Goods findById(Long id);

    List<GoodsDesc> findAll();


    // 根据id查询商品详情
    GoodsDesc findDesc(Long id);
}
